window.Env = {
    ServerEnvName: "",
    UserAgent: ""
};

const ua = navigator.userAgent.toLowerCase();
let isWeiXin = false,
    isDingTalk = false;
if(ua.match(/DingTalk/i) == "dingtalk"){//用钉钉打开
    isDingTalk = true;
    Env.UserAgent = "dingTalk";
    document.write("<script type=\"text/javascript\" src=\"http://g.alicdn.com/dingding/dingtalk-jsapi/2.3.0/dingtalk.open.js\"><\/script>");
}else if(ua.match(/MicroMessenger/i) =="micromessenger"){//用微信打开
    isWeiXin = true;
    Env.UserAgent = "weiXin";
}